<cfif action eq 'add'>

     
    	<cftry>
        <cfquery  datasource="101tf2" name="addList">
     	   insert into list (name,type,id) values ('#value#','listitem','#createuuid()#')         
        </cfquery>
        List Created.
        
        <cfcatch>Unable to add list</cfcatch>
        </cftry>

<cfelseif  action eq 'remove'>
<cftry>
        <cfquery  datasource="101tf2" name="delList">
         
        delete from list where id='#value#'  
         
        </cfquery>
        	 
        <cfquery  datasource="101tf2" name="delList">
         
        delete from mylist where lid='#value#'  
         
        </cfquery>
        list Deleted.
        <cfcatch>Already Added</cfcatch>
        </cftry>
<cfelseif  action eq 'default'>
<cftry>  
		 <cfquery  datasource="101tf2" name="delList">
         
        update list set defaultlist='no' , lastdate	=	lastdate	where type NOT in ('favitem')
         
        </cfquery>
        <cfquery  datasource="101tf2" name="delList">
         
        update list set defaultlist='yes' where id='#value#'  
         
        </cfquery>
     
        Selected list set to deafult.
        <cfcatch>Already Added</cfcatch>
        </cftry>
<cfelseif  action eq 'rename'>
<cftry>  

        <cfquery  datasource="101tf2" name="delList">
         
        update list set name='#newvalue#' where id='#value#'  
         
        </cfquery>
     
        Selected list set to deafult.
        <cfcatch>Already Added</cfcatch>
        </cftry>
                        
</cfif>